package com.atguigu.yygh.hosp.service;

import com.atguigu.yygh.model.hosp.Department;
import com.atguigu.yygh.vo.hosp.DepartmentQueryVo;
import com.atguigu.yygh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface DepartmentService {
    //上传科室
    void save(Department department);
   //查询科室 带条件分页
    Page<Department> selectPage(int page, int limit, DepartmentQueryVo departmentQueryVo);
    //删除科室
    void remove(String hoscode, String depcode);

    //根据医院编号查询所有科室
    List<DepartmentVo> findDeptTree(String hoscode);
    //获取科室名称
    String getDepName(String depcode);
}
